|
A rewrite engine is software located in a Web application framework running on a Web server that modifies a web URL's appearance. Many framework users have come to refer to this feature as a "Router". This modification is called URL rewriting. Rewritten URLs (sometimes known as short, pretty or fancy URLs, search engine friendly - SEF URLs, or slugs) are used to provide shorter and more relevant-looking links to web pages. The technique adds a layer of abstraction between the files used to generate a web page and the URL that is presented to the outside world. ==Usage== Web sites with dynamic content use URLs that generate pages from the server using query string parameters. These are often rewritten to resemble URLs for static pages on a site with a subdirectory hierarchy. For example, the URL to a wiki page might be: but can be rewritten as: A blog might have a URL that encodes the dates of each entry: It can be altered like this: which also allows the user to change the URL to see all postings available in December, simply by removing the text encoding the day '19', as though navigating "up" a directory: A site can pass specialized terms from the url to its search engine as a search term. This would allow users to search directly from their browser. For example, the URL as entered into the browser's location bar: Will be urlencoded by the browser before it makes the http request. The server could rewrite this to: 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Rewrite engine」の詳細全文を読む スポンサード リンク
|